package com.neu.eurekaprovidetea.service;

import com.neu.dto.TeaDto;
import com.neu.eurekaprovidetea.mapper.TeaMapper;
import com.neu.util.CommonResult;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class TeaService {

    @Resource
    private TeaMapper teaMapper;
    public CommonResult doReg(TeaDto dto) {
        CommonResult rst=new CommonResult();
        int row=teaMapper.save(dto);
        return rst;
    }
}
